<?php if($featured_projects) { ?>
<div class="carousel">
	<h2 class="page-header"><?php echo $text_feature_projects; ?></h2>
	<div class="content">
		<div class="view-all">
			<a class="btn btn-primary arrow-right" href="<?php echo base_url(); ?>projects.html">View All</a>
		</div>
		<a class="carousel-prev" href="detail.html">Previous</a> 
		<a class="carousel-next" href="detail.html">Next</a>
		<ul>
		<?php foreach ($featured_projects as $media) { ?>
			<li>
				<?php if(isset($media['media_project']->FileName) && isset($media['media_project']->FileExtension)) { ?>
				<div class="image">
					<a href="<?php echo $media['href']; ?>"></a> 
					<img src="<?php echo $this->config->item('HTTP_PRODIR_MEDIA_IMAGE') . $media['ID'] . '/' . $media['media_project']->FileName . LANDSCAPE_FEATURED_DIMENSION . $media['media_project']->FileExtension; ?>" alt="" width="<?php echo $media['width']; ?>" height="<?php echo $media['height']; ?>">
				</div>
				<!-- /.image --> 
				<?php } else { ?>
				<div class="image">
					<img src="<?php echo $this->config->item('HTTP_IMAGE'); ?>tmp/no-image.png" alt="">
				</div>
				<?php } ?>
				<div class="title">
					<h3><a href="<?php echo $media['href']; ?>"><?php echo ucwords(strtolower($media['ProjectName'])); ?></a></h3>
				</div>
				<!-- /.title -->
				<div class="area description">
					<?php echo html_entity_decode(character_limiter($media['Description'], 100) , ENT_QUOTES, 'UTF-8'); ?>
				</div>
			<!-- /.area -->
			</li>
		<?php } ?>
		</ul>
	</div>
	<!-- /.content -->
</div>
<!-- /.carousel -->
<?php } ?>
